package com.ruoyi.type.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 部门管理对象 types
 * 
 * @author ruoyi
 * @date 2022-07-15
 */
public class Types extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long deptId;

    /** 上级部门ID，一级部门为0 */
    @Excel(name = "上级部门ID，一级部门为0")
    private Long parentId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String name;

    /** 联系人 */
    @Excel(name = "联系人")
    private String contacts;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNum;

    /** 是否删除  -1：已删除  0：正常 */
    private Integer delFlag;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long businessId;

    /** 部门编码，有层级关系 */
    @Excel(name = "部门编码，有层级关系")
    private String deptNo;

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setContacts(String contacts) 
    {
        this.contacts = contacts;
    }

    public String getContacts() 
    {
        return contacts;
    }
    public void setOrderNum(Long orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum() 
    {
        return orderNum;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setBusinessId(Long businessId) 
    {
        this.businessId = businessId;
    }

    public Long getBusinessId() 
    {
        return businessId;
    }
    public void setDeptNo(String deptNo) 
    {
        this.deptNo = deptNo;
    }

    public String getDeptNo() 
    {
        return deptNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deptId", getDeptId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("contacts", getContacts())
            .append("orderNum", getOrderNum())
            .append("delFlag", getDelFlag())
            .append("businessId", getBusinessId())
            .append("deptNo", getDeptNo())
            .toString();
    }
}
